package cn.dglydrpy.study.spring.aop.xml;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description:  
 * @author:LY_飘涯
 * @date:2021-7-5 23:59:07 
 * @version:1.0
 */
@Service
public class AOPXmlService implements IAOPXmlService{
	
	public void method() {
		System.out.println("AOPXmlService.method() 执行中...");
	}

	@Override
	// 声明式事务
	@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
	public void transactionMethod() {
		System.out.println("事务方法 AOPXmlService.transactionMethod() 执行中...");
	}

}
